<?php 
require_once 'source.php';
require_once 'config.php';
require_once 'dao/dao_db.php';
require_once 'dao/dao_sys_manage.php';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script type="text/javascript" src="js/datepicker/WdatePicker.js"></script>
</head>
<body>
<div class="wrapper">
	<?php require_once 'header.php';?>
	<div id="layout">
		<div id="leftlay"><?php require_once 'leftnav.php';?></div>
		<div id="rightlay">
			<div class="columntitle"><?php echo SYSMANAGE?></div>
			<div class="columncontent">
			<?php 
				if(isset($_GET['msgcode'])&&$_GET['msgcode']==1){
				?>
				<span style="color:red"><?php echo SAVESUCCESSFUL?></span>
				<?php 
				}
				$result=get_sysinfo();
				mysql_close();
				if(($row=mysql_fetch_array($result))!=false){
					$termstartday=$row['SEMESTERSTART'];
					$switch=$row['BBSSWITCH'];
				}
			?>
				<form action="service/service_sys_manage.php" method="post">
				<div id="termstartday">
					<span><?php echo TERMSTARTDAY?>:</span>
					<input type="text" name="termstartday" class="Wdate" onfocus="WdatePicker({isShowClear:false,readOnly:true,disabledDays:[0,2,3,4,5,6]})" value="<?php echo $termstartday?>"/>
				</div>
				<div id="bbsswitch">
					<label>
						<input type="radio" name="switch" value="1" <?php if($switch==ON){echo 'checked';}?>/>
						<span><?php echo SWITCHON?></span>
					</label>
					<label>
						<input type="radio" name="switch" value="0" <?php if($switch==OFF){echo 'checked';}?>/>
						<span><?php echo SWITCHOFF?></span>
					</label>
				</div>					
					<input type="submit" value="<?php echo SAVE;?>"/>
				</form>
			</div>
		</div>
	</div>
</div>
</body>
</html>